package com.yfuxdeer.youchat.dao;

import com.yfuxdeer.youchat.pojo.Message;
import com.yfuxdeer.youchat.pojo.MessageItem;

import java.util.List;

public interface MessageDao {
    List<Message> findSendToMeAll(String username) throws Exception;

    List<Message> findISendToAll(String username) throws Exception;

    MessageItem findLastMessage(String from,String to) throws Exception;

    List<Message> findAllMessageWithAFriend(String host, String friend) throws Exception;
}
